#include "eventControl.h"

EventSchedule::EventSchedule()
{

}

int EventSchedule::taskSysInit(std::shared_ptr<notifyCond<image_detect_info>>& nc){
    // 图像算法初始化
    imgAlgor.reset(new ImgProcManager(nc));
    return imgAlgor->procSysInit();
}

int EventSchedule::taskStartTrack(image_detect_info& track_rect){

    return imgAlgor->ImgAlgorProcRun();
}

int EventSchedule::taskStopTrack(){
    
    return imgAlgor->ImgAlgorProcStop();
}

